﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebNote.Modules
{
    /// <summary>
    /// 文档
    /// </summary>
    public class Document
    {
        /// <summary>
        /// 文档编号GUID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 文档名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 文档位置 example /程序人生/程序算法/
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// seo关键字 绅士
        /// </summary>
        public string SEO { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// 文档地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }

        /// <summary>
        /// 文档类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 所有者
        /// </summary>
        public string Owner { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string FileType { get; set; }

        /// <summary>
        /// 样式ID guid
        /// </summary>
        public string StyleId { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        public long CreatedTime { get; set; }

        /// <summary>
        ///  修改时间
        /// </summary>
        public long ModifiedTime { get; set; }

        /// <summary>
        ///  修改时间
        /// </summary>
        public long AccessedTime { get; set; }

        /// <summary>
        /// 是否已同步
        /// </summary>
        public int Sync { get; set; }


        /// <summary>
        /// 是否已同步
        /// </summary>
        public int ReadCount { get; set; }

        /// <summary>
        /// 附件总数
        /// </summary>
        public int AttachementCount { get; set; }

        /// <summary>
        /// 是否已索引
        /// </summary>
        public int Indexed { get; set; }

        /// <summary>
        ///  数据修改时间
        /// </summary>
        public long InfoModifiedTime { get; set; }

        /// <summary>
        ///  数据修改时间
        /// </summary>
        public long DataModifiedTime { get; set; }

        /// <summary>
        ///  参数修改时间
        /// </summary>
        public long ParamModifiedTime { get; set; }

        /// <summary>
        /// 信息MD5
        /// </summary>
        public string InfoMd5 { get; set; }

        /// <summary>
        /// 数据MD5
        /// </summary>
        public string DataMd5 { get; set; }

        /// <summary>
        /// 参数MD5
        /// </summary>
        public string ParamMd5 { get; set; }

        /// <summary>
        /// 是否已下载
        /// </summary>
        public int Downloaded { get; set; }

        /// <summary>
        /// 本地标志
        /// </summary>
        public int LocalFlags { get; set; }

        /// <summary>
        /// 服务器文件版本
        /// </summary>
        public int ServerVersion { get; set; }
        
        /// <summary>
        /// 文件版本
        /// </summary>
        public int Version { get; set; }
       

        public bool Add()
        {
            return true;
        }

        public bool Delete()
        {
            return true;
        }

        public bool Update()
        {
            return true;
        }
    }
}
